variable "region" {
  type        = string
  default     = "cn-hangzhou"
  description = "区域"
}

variable "vpc_name" {
  type        = string
  default     = "tf_test_vpc"
  description = "vpc 名称"
}

variable "vpc_cird_block" {
  type        = string
  default     = "172.16.0.0/12"
  description = "vpc 网段"
}

variable "vswitch_name" {
  type        = string
  default     = "tf_test_vswitch"
  description = "vswitch 名称"
}

variable "vswitch_cird_block" {
  type        = string
  default     = "172.16.0.0/21"
  description = "vswitch 网段"
}

variable "securitygroup_name" {
  type        = string
  default     = "tf_test_securitygroup"
  description = "安全组名称"
}

variable "security_description" {
  type        = string
  default     = "此安全组提供给Redis数据库"
  description = "安全组描述"
}

variable "ip_protocol" {
  type        = string
  default     = "tcp"
  description = "协议"
}

variable "port_range" {
  type        = string
  default     = "1/65535"
  description = "开放端口范围"
}

variable "db_instance_name" {
  type        = string
  default     = "tf-test-basic"
  description = "数据库实例名称"
}

variable "db_instance_type" {
  type        = string
  default     = "Redis"
  description = "数据库类型"
}

variable "db_version" {
  type        = string
  default     = "4.0"
  description = "数据库版本"
}

variable "db_instance_class" {
  type        = string
  default     = "redis.master.large.default"
  description = "实例规格"
}

variable "db_tag_created" {
  type        = string
  default     = "TF"
  description = "数据库目的标签"
}

variable "db_tag_for" {
  type        = string
  default     = "test"
  description = "数据库来源标签"
}

variable "password" {
  type        = bool
  sensitive   = true
  description = "数据库密码"
}